package com.chinaunicom.structure.bridge;

import java.sql.Driver;

/**
 * @author liry
 * @version 1.0
 * @date Created on 2022/7/25 11:10
 * Description: 客户端
 */
public class BagManager {

    public static void main(String[] args) {
//        Driver
        // 桥接模式
//        Color color = new Red();

        // 桥接整合适配器
        Color color = new ObjectAdapter(new Adaptee());
        Bag bag = new Wallet(color);

        System.out.println(bag.getName());
    }
}
